package com.jdbc.text6;

import java.sql.SQLException;

public class Fun1 {
    public static void main(String[] args) throws SQLException {
        NewsDaoImp1 newsDaoImp1 = new NewsDaoImp1();
        //newsDaoImp1.getNewsByTitle();
        //newsDaoImp1.addNews(9,"军事",new Date());
        //newsDaoImp1.addNews(8,"军事",new Date());
        //newsDaoImp1.deleteNews(7);
       newsDaoImp1.updateNews(8,"java");
    }


}
